/*
 ============================================================================
 Page	     : 269
 Name        : swap2.c
 Date	     : 20210404
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 查找swap1.c的问题
 ============================================================================
 */

#include <stdio.h>
void interchange(int u, int v);		/* 声明函数 */

int main(void)
{
	int x = 5;
	int y = 10;

	printf("Originally x = %d and y = %d.\n", x, y);
	interchange(x, y);
	printf("Now x = %d and y = %d.\n", x, y);

	return 0;
}

void interchange(int u, int v)
{
	int temp = 0;

	printf("Originally u = %d and v = %d.\n", u, v);
	temp = u;
	u = v;
	v = temp;
	printf("Now u = %d and v = %d.\n", u, v);
}

